@import 'antd/es/style/themes/default.less';
.container {
  display: flex;
  flex: 1;
  flex-direction: row;

  padding: 24px;
}
.role-container {
  width: 264px;
  min-height: 100%;
  margin-right: 24px;
  padding: 12px;

  border-radius: @border-radius-base;
  background-color: @grey-2;
}
.role-list {
  margin: 0;
  padding: 0;

  list-style: none;
  li {
    font-size: @font-size-base;
    line-height: 32px;

    position: relative;

    height: 32px;
    margin: 4px 0;
    padding: 0 40px 0 8px;

    cursor: pointer;

    border-radius: @border-radius-base;
    &:hover {
      color: #fff;
      background-color: @primary-2;
    }
    &.active {
      color: #fff;
      background-color: @primary-color;
    }
    > i {
      position: absolute;
      top: 0;
      right: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      width: 32px;
      height: 32px;
    }
  }
}
.danger {
  color: @error-color;
}
.authorities-container {
  flex: 1;
}
.authorities-block {
  margin-bottom: 24px;
  padding: 16px 24px;

  border: 1px solid @border-color-split;
  border-radius: @border-radius-base;
}
.authorities-top {
  line-height: 48px;

  display: inline-block;

  height: 48px;

  cursor: pointer;
  .authorities-top-title {
    font-family: 'Microsoft Yahei Bold', 'Microsoft Yahei Regular', Microsoft Yahei, sans-serif;
    font-size: @font-size-lg;
    font-weight: bold;

    margin-left: 16px;

    color: @heading-color;;
  }
}
.authorities-list {
  .authorities-cell {
    line-height: 24px;

    display: inline-flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;

    cursor: pointer;
  }
}

@media screen and (min-width: 1457px) {
  .authorities-list {
    .authorities-cell {
      width: 20%;
      margin: 8px 6.66% 8px 0;


      &:nth-child(4n) {
        margin-right: 0;
      }
    }
  }
}

@media screen and (max-width: 1457px) {
  .authorities-list {
    .authorities-cell {
      width: 30%;
      margin: 8px 5% 8px 0;


      &:nth-child(3n) {
        margin-right: 0;
      }
    }
  }
}

